 <!--  帮助 start -->
    <div class="help_center" >
     	
     	<div id="help_center" class="help_detail hidden">
	     		<h3>{$_lang['what']}{$model_info['model_name']}？</h3>
		        <p><!--{eval echo kekezu::filter_input($model_info['model_desc'])}--></p>
				
      	</div>
  
      	<div class="help_down ">
			<a href="#" class="action_show">任务说明<span class="arrow_b"></span></a>
		</div>
	</div>
 <!--  帮助 end -->



  <!--from表单 start-->
   <div class="form_box clearfix box border_n">
      <!--<div class="form_tip">
        <h5 class="font14b t_c" style="color:#7caf22">{$model_info['model_name']}{$_lang['task_process']}</h5>
        微博转发-single
		<div class="min_step all_5 step_orange mb_10 ml_30">
					<ul class="clearfix">
						<li class>
							<div class="icon"></div>
							<span>{$_lang['release']}</span>
						</li>
						
						<li>
							<div class="icon"></div>
							<span>{$_lang['audit']}</span>
						</li>
						
						<li>
							<div class="icon"></div>
							<span>{$_lang['submit_work']}</span>
						</li>
						
						<li>
							<div class="icon"></div>
							<span>{$_lang['choos_work']}</span>
						</li>
							
						<li class="last">
							<div class="icon"></div>
							<span>{$_lang['task_over']}</span>
						</li>
						
					</ul>
				</div>
      </div>-->
	  <form action="{$basic_url}" method="post" name="frm_step1" id="frm_step1">
  	<input type="hidden" name="step1" value="step1">
	<input type="hidden" name="min" value="$min" id="min">
 	<input type="hidden" name="max" value="{if $release_info['max']}{$release_info['max']}{else}{$default_max_day}{/if}" id="max">
	  	<input type="hidden" name="formhash" value="{FORMHASH}">
        <div class="rowElem clearfix ">
          <label class="grid_8"><strong>{$_lang['budget']}{$_lang['zh_mh']}</strong></label>
           <div class="grid_12">
              <input name="txt_task_cash"  size="30" value="{if $r_info['txt_task_cash']}$r_info['txt_task_cash']{else}$task_config['min_cash']{/if}" type="text"  id="txt_task_cash" msgArea="span_task_cash"  title="{$_lang['mtask_cash_title']}{$task_config['min_cash']}{$_lang['yuan']}" onkeyup="clearstr(this)"
		    limit="required:true;type:float;between:{$task_config['min_cash']}-" msg="{$_lang['mtask_cash_msg']}{$task_config['min_cash']}{$_lang['yuan']}" onblur="getMaxDday(this.value)" />
			<span class="ml_5">{$_lang['yuan']}</span>
			<span id="span_task_cash"  class="ml_5"></span>

           </div>
        </div>
        <div class="rowElem clearfix ">
          <label class="grid_8"><strong>{$_lang['task_round']}{$_lang['zh_mh']}</strong></label>
            <div class="grid_12">
            	<input name="txt_task_day" onclick="showcalendar(event, this, 0);" size="30" value="{if $r_info['txt_task_day']}$r_info['txt_task_day']{else}$default_max_day{/if}" type="text" id="txt_task_day" title="{$_lang['task_round_title']}:{$task_config['min_day']},{$_lang['max_day']}$default_max_day {$_lang['day']}" msgArea="span_task_day" onkeyup="clearstr(this);"
			   	limit="required:true;type:date;than:min;less:max" msg="{$_lang['task_round_msg']}" max=""   min_day="$task_config['min_day']"/> 
				 <span id="span_task_day"  class="ml_5"></span>

			</div>
        </div>
		<div class="rowElem clearfix ">
          <label class="grid_8"><strong>{$_lang['price_way']}</strong></label>
            <div class="grid_12">
            	<label><input class="border_n" type='radio' name='assign' value='1' id='influence' {if $r_info['assign']==1 || !$r_info['assign']}checked="checked"{/if}>影响力</label>
				<label><input class="border_n" type='radio' name='assign' value='2' id='click' {if $r_info['assign']==2}checked="checked"{/if}>点击数</label>
			</div>
        </div>
	     <div class="rowElem clearfix " id='influence_view'>
          
            <div class="prefix_8 grid_12">
            	<ul class="clearfix">
              	{loop $fans_arr $k $v}
				<li class="clearfix mb_5">
			
					<label><!--{eval echo keke_glob_class::num2ch($k);}-->级影响力</label>
					<input type="text" size="3" style="width:30px" name="price_rule[$k]" id="price_rule_$k" value="$v['cash']" title="{$_lang['min_price_notice']}$v['cash']" limit="required:true;type:float;between:{$v['cash']}-" msg="{$_lang['min_price_notice']}$v['cash']" msgArea="msg_min_cash_$k"> <span class="word_yuan">{$_lang['yuan']}</span>
				
				<img class="ask_img"  src="static/img/ico/help.png" title="活跃粉丝数所占比重{$v['rate']}%以内,根据原创，转载，评论收藏数，及博主活跃度所计算出分值决定">
					<span id="msg_min_cash_$k"  class="ml_5"></span>
				</li>
				{/loop}
				</ul> 
			</div>
        </div>
	     <div class="rowElem clearfix " id='click_view'>
          <label class="grid_8"><strong>{$_lang['click_price']}{$_lang['zh_mh']}</strong></label>
            <div class="grid_12">
               <input name="click_price" size="30" type="text" id="click_price" title="{$_lang['click_price_title']}" msgArea="span_task_single_price" 
			   	limit="required:true;type:float;between:0.01-" msg="{$_lang['click_price_msg']}" value="{$r_info['click_price']}"/>
            	 <span class="ml_5">{$_lang['click_dw']}</span>
				 <span id="span_task_single_price"  class="ml_5"></span>
			</div>
        </div>
		 <div class="rowElem clearfix ">
           <label class="grid_8"><strong>{$_lang['cash_assign']}{$_lang['zh_mh']}</strong></label>
             <div class="grid_6"><strong>{$_lang['m_reward']}</strong></div>
        </div>
     </form>
    </div>
    <!--from表单 end-->
    <div class="step_button"> <button type="submit" name="is_submit" onclick="clickError();" class="big button">{$_lang['next_step']}</button></div>



<script type="text/javascript">
	In('calendar');
</script>
<script type="text/javascript">
	$(function(){
		var assign	 =parseInt("{$r_info['assign']}");
		var inflObj  = $('#influence');
		var clObj 	 = $('#click');
		var inflvObj = $('#influence_view');
		var clvObj 	 = $('#click_view');
			if(isNaN(assign)||assign==1){
				inflObj.attr('checked',true);
				inflvObj.show().next().hide();
			}else{
				clObj.attr('checked',true);
				clvObj.show().prev().hide();
			}
			inflObj.click(function(){
				inflvObj.show().next().hide();
			})
			clObj.click(function(){
				clvObj.show().prev().hide();
			})
		})
		function clickError(){
			var clvObj 	 = $('#click_view');
			var pass     = true;
			if (clvObj.css('display') == 'block') {
				var sinObj = $('#click_price');
				var sin = parseFloat(sinObj.val()) + 0;
				var tot = parseFloat($('#txt_task_cash').val()) + 0;
					if (typeof(sin) == 'undinfed'||sin==0) {
						tipsAppend('span_task_single_price',"{$_lang['click_price_can_not_be_null']}",'warning','m_warn');
						sinObj.focus();
						pass=false;
					}else if(sin>tot){
						tipsAppend('span_task_single_price',"{$_lang['click_price_cant_not_higer_than_cash']}",'warning','m_warn');
						sinObj.focus();
						pass=false;
					}
			}
			pass==true&&stepCheck();
		}
</script>
<!--end 右边部分-->